<script type="text/javascript">
    function search(obj) {
        $('tr').hide().filter(":contains('" +($(obj).val()) + "')").show();
    }
  </script>

<script>
$(document).ready(function(){
	$("#postdomain").click(function(){
		$("#res").html('<img src=/bootstrap/style/loading.gif></img>')
		$.post("/cgi-bin/nslookup.py",{
			textcontent2:$("#textcontent2").val(),
			textcontent:$("#textcontent").val()
		},
		function(data,status){
			$("#res").html(data);
		});
	});
});
</script>
<div class="row">
<div class="col-md-3" > 
<div class="form-group">
<label for="textcontent2">DNS服务器:不填写默认使用113.214.230.10（解析结果不含缓存劫持）</label>
<input type="text" class="form-control"  id="textcontent2" />

<label for="textcontent">可添加多个，每行一个域名</label>

<textarea class="form-control" id="textcontent" rows="30">
</textarea>
<br>
<button class="btn btn-default" id='postdomain'>提交</button>
</div>
</div>
<div class="col-md-1">
<div class="btn-group-vertical">
<button  type="button" class="btn btn-default" onclick="method5('mytab')">导出Excel</button>
<button   type="button" class="btn btn-default" value="出网" onclick="search(this)">显示出网域名</button>
<button  type="button" class="btn btn-default" value="华通" onclick="search(this)">显示网内域名</button>
<button  type="button" class="btn btn-default" onclick="$('tr').show();" >显示全部</button>
</div>
</div> 

<div class="col-md-7"> 

<br>
<div id="res" style="text-align: center;">
解析结果显示区域
</div>
</div>
</div>
